package com.pro.service.imple;

import com.pro.mapper.CourseMapper;
import com.pro.pojo.*;
import com.pro.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImple implements CourseService {
    @Autowired
    private CourseMapper courseMapper;

    @Override
    public List<JsCourseClass> getCourseTree() {
        return courseMapper.getCourseTree();
    }

    @Override
    public boolean addCourseTreeNode(JsCourseClass courseClass) {
        return courseMapper.addCourseTreeNode(courseClass);
    }

    @Override
    public boolean delCourseTreeNode(Integer id) {
        return courseMapper.delCourseTreeNode(id);
    }

    @Override
    public boolean editCourseTreeNode(String name, Integer id) {
        return courseMapper.editCourseTreeNode(name, id);
    }

    @Override
    public List<JsCourse> getCourseTable() {
        return courseMapper.getCourseTable();
    }

    @Override
    public Integer getCourseCounts() {
        return courseMapper.getCourseCounts();
    }

    @Override
    public Integer getCourseCstatus(Integer result) {
        return courseMapper.getCourseCstatus(result);
    }

    @Override
    public Integer getCourseStatus(Integer courseStatus) {
        return courseMapper.getCourseStatus(courseStatus);
    }

    @Override
    public List<JsCourse> getCourseTableByStatus(Integer courseStatus) {
        return courseMapper.getCourseTableByStatus(courseStatus);
    }

    @Override
    public List<JsCourse> getCourseTableByCstatus(Integer courseCstatus) {
        return courseMapper.getCourseTableByCstatus(courseCstatus);
    }

    @Override
    public List<JsCourse> getCheckedCourse(Integer classId) {
        return courseMapper.getCheckedCourse(classId);
    }

    @Override
    public List<JsCourseClass> getCourseClassAll() {
        return courseMapper.getCourseClassAll();
    }

    @Override
    public List<JsCourse> getCourseRetrieval(JsCourse course) {
        return courseMapper.getCourseRetrieval(course);
    }

    @Override
    public List<JsCourse> getCourseSearch(String courseName, String name, Integer courseNprice) {
        return courseMapper.getCourseSearch(courseName, name, courseNprice);
    }

    @Override
    public JsCourse getCourseByOrderId(Integer orderId) {
        return courseMapper.getCourseByOrderId(orderId);
    }

    @Override
    public boolean updateCourseStatus(Integer courseStatus, Integer courseId) {
        return courseMapper.updateCourseStatus(courseStatus, courseId);
    }

    @Override
    public boolean addCourse(JsCourse course) {
        return courseMapper.addCourse(course);
    }

    @Override
    public JsCourse getCourseById(Integer id) {
        return courseMapper.getCourseById(id);
    }

    @Override
    public boolean addCourseRecord(SyCourseRecord courseRecord) {
        return courseMapper.addCourseRecord(courseRecord);
    }

    @Override
    public List<JsCourse> getCourseIdAll() {
        return courseMapper.getCourseIdAll();
    }

    @Override
    public List<JsCourse> getCourseTableByResult(Integer result) {
        return courseMapper.getCourseTableByResult(result);
    }

    @Override
    public List<JsCourse> getCourseExamineSearch(String courseName, String name, String trueName) {
        return courseMapper.getCourseExamineSearch(courseName, name, trueName);
    }

    @Override
    public boolean courseExamine(Integer implementId, String implementDate, Integer result, String remarks, Integer courseId) {
        return courseMapper.courseExamine(implementId, implementDate, result, remarks, courseId);
    }

    @Override
    public boolean updateCourse(JsCourse course) {
        return courseMapper.updateCourse(course);
    }

    @Override
    public List<JsLog> getCourseOperationLog() {
        return courseMapper.getCourseOperationLog();
    }

    @Override
    public List<JsLog> getCourseOperationLogSearch(String trueName,String remark,Integer type,String createDate) {
        return courseMapper.getCourseOperationLogSearch(trueName, remark, type, createDate);
    }

    @Override
    public List<SyDictData> getCoursePrice(String dictLabel,String dictValue,String createTime) {
        return courseMapper.getCoursePrice(dictLabel,dictValue,createTime);
    }

    @Override
    public List<JsCourse> getCourseByCreateId(Integer createId) {
        return courseMapper.getCourseByCreateId(createId);
    }

    @Override
    public List<JsCourse> getCourseByCreateIdSearch(String courseName, String coursePrimary, String courseNprice,Integer createId) {
        return courseMapper.getCourseByCreateIdSearch(courseName, coursePrimary, courseNprice,createId);
    }

    @Override
    public List<JsCourse> getCourseByCreateIdRetrieval(JsCourse course) {
        return courseMapper.getCourseByCreateIdRetrieval(course);
    }

    @Override
    public boolean delCourseByCourseId(Integer courseId) {
        return courseMapper.delCourseByCourseId(courseId);
    }

    @Override
    public boolean delCommentByCommodityId(Integer commodityId) {
        return courseMapper.delCommentByCommodityId(commodityId);
    }

    @Override
    public  boolean delCourseRecord(Integer courseId) {
        return courseMapper.delCourseRecord(courseId);
    }

    @Override
    public Integer getCommentCounts(Integer commodityId){
        return courseMapper.getCommentCounts(commodityId);
    }

    @Override
    public List<JsComment> getCommentByCommodityId(Integer CommodityId){
        return courseMapper.getCommentByCommodityId(CommodityId);
    }

    @Override
    public boolean addCourseauditLog(JsAuditLog auditLog) {
        return courseMapper.addCourseauditLog(auditLog);
    }

    @Override
    public List<JsCourse> getAuditById(Integer courseId) {
        return courseMapper.getAuditById(courseId);
    }

    @Override
    public int getAllCourseUpperCount() {
        return courseMapper.getAllCourseUpperCount();
    }
}
